﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.events {
    import flash.events.*;

    public class HandleElementEvent extends Event {

        private var _id:String;
        private var _type:String;
        private var _roomId:String;
        private var _x:int;
        private var _y:int;
        private var _z:int;

        public static const CREATE_ELEMENT:String = "CREATE_ELEMENT";
        public static const REMOVE_ELEMENT:String = "REMOVE_ELEMENT";
        public static const UPDATE_ELEMENT:String = "UPDATE_ELEMENT";

        public function HandleElementEvent(_arg1:String, _arg2:String, _arg3:String, _arg4:Boolean=false, _arg5:Boolean=false){
            super(_arg1, _arg4, _arg5);
            this._id = _arg2;
            this._type = _arg3;
        }
        public function get id():String{
            return (this._id);
        }
        public function get elementType():String{
            return (this._type);
        }
        public function get roomId():String{
            return (this._roomId);
        }
        public function set roomId(_arg1:String):void{
            this._roomId = _arg1;
        }
        public function get x():int{
            return (this._x);
        }
        public function set x(_arg1:int):void{
            this._x = _arg1;
        }
        public function get y():int{
            return (this._y);
        }
        public function set y(_arg1:int):void{
            this._y = _arg1;
        }
        public function get z():int{
            return (this._z);
        }
        public function set z(_arg1:int):void{
            this._z = _arg1;
        }
        public function get data():Object{
            var _local1:Object = {element_id:this._id, element_type:this._type, room_id:this._roomId, x:this._x, y:this._y, z:this._z};
            return (_local1);
        }

    }
}//package net.wooga.pets.events 
